﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001311 RID: 4881
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SyncTurnFoodNotify : IMessage<SyncTurnFoodNotify>, IMessage, IEquatable<SyncTurnFoodNotify>, IDeepCloneable<SyncTurnFoodNotify>, IBufferMessage
	{
		// Token: 0x17003D99 RID: 15769
		// (get) Token: 0x0600DA83 RID: 55939 RVA: 0x0024993D File Offset: 0x00247B3D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SyncTurnFoodNotify> Parser
		{
			get
			{
				return SyncTurnFoodNotify._parser;
			}
		}

		// Token: 0x17003D9A RID: 15770
		// (get) Token: 0x0600DA84 RID: 55940 RVA: 0x00249944 File Offset: 0x00247B44
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SyncTurnFoodNotifyReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003D9B RID: 15771
		// (get) Token: 0x0600DA85 RID: 55941 RVA: 0x00249956 File Offset: 0x00247B56
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SyncTurnFoodNotify.Descriptor;
			}
		}

		// Token: 0x0600DA86 RID: 55942 RVA: 0x0024995D File Offset: 0x00247B5D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SyncTurnFoodNotify()
		{
		}

		// Token: 0x0600DA87 RID: 55943 RVA: 0x0024997B File Offset: 0x00247B7B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SyncTurnFoodNotify(SyncTurnFoodNotify other) : this()
		{
			this.dJKHJFIKMDP_ = other.dJKHJFIKMDP_.Clone();
			this.turnFoodSwitch_ = other.turnFoodSwitch_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600DA88 RID: 55944 RVA: 0x002499B6 File Offset: 0x00247BB6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SyncTurnFoodNotify Clone()
		{
			return new SyncTurnFoodNotify(this);
		}

		// Token: 0x17003D9C RID: 15772
		// (get) Token: 0x0600DA89 RID: 55945 RVA: 0x002499BE File Offset: 0x00247BBE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> DJKHJFIKMDP
		{
			get
			{
				return this.dJKHJFIKMDP_;
			}
		}

		// Token: 0x17003D9D RID: 15773
		// (get) Token: 0x0600DA8A RID: 55946 RVA: 0x002499C6 File Offset: 0x00247BC6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<TurnFoodSwitch> TurnFoodSwitch
		{
			get
			{
				return this.turnFoodSwitch_;
			}
		}

		// Token: 0x0600DA8B RID: 55947 RVA: 0x002499CE File Offset: 0x00247BCE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SyncTurnFoodNotify);
		}

		// Token: 0x0600DA8C RID: 55948 RVA: 0x002499DC File Offset: 0x00247BDC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SyncTurnFoodNotify other)
		{
			return other != null && (other == this || (this.dJKHJFIKMDP_.Equals(other.dJKHJFIKMDP_) && this.turnFoodSwitch_.Equals(other.turnFoodSwitch_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600DA8D RID: 55949 RVA: 0x00249A30 File Offset: 0x00247C30
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.dJKHJFIKMDP_.GetHashCode();
			num ^= this.turnFoodSwitch_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600DA8E RID: 55950 RVA: 0x00249A72 File Offset: 0x00247C72
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600DA8F RID: 55951 RVA: 0x00249A7A File Offset: 0x00247C7A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600DA90 RID: 55952 RVA: 0x00249A83 File Offset: 0x00247C83
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.dJKHJFIKMDP_.WriteTo(ref output, SyncTurnFoodNotify._repeated_dJKHJFIKMDP_codec);
			this.turnFoodSwitch_.WriteTo(ref output, SyncTurnFoodNotify._repeated_turnFoodSwitch_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600DA91 RID: 55953 RVA: 0x00249ABC File Offset: 0x00247CBC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.dJKHJFIKMDP_.CalculateSize(SyncTurnFoodNotify._repeated_dJKHJFIKMDP_codec);
			num += this.turnFoodSwitch_.CalculateSize(SyncTurnFoodNotify._repeated_turnFoodSwitch_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600DA92 RID: 55954 RVA: 0x00249B08 File Offset: 0x00247D08
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SyncTurnFoodNotify other)
		{
			if (other == null)
			{
				return;
			}
			this.dJKHJFIKMDP_.Add(other.dJKHJFIKMDP_);
			this.turnFoodSwitch_.Add(other.turnFoodSwitch_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600DA93 RID: 55955 RVA: 0x00249B47 File Offset: 0x00247D47
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600DA94 RID: 55956 RVA: 0x00249B50 File Offset: 0x00247D50
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 34U)
				{
					if (num == 32U || num == 34U)
					{
						this.dJKHJFIKMDP_.AddEntriesFrom(ref input, SyncTurnFoodNotify._repeated_dJKHJFIKMDP_codec);
						continue;
					}
				}
				else if (num == 64U || num == 66U)
				{
					this.turnFoodSwitch_.AddEntriesFrom(ref input, SyncTurnFoodNotify._repeated_turnFoodSwitch_codec);
					continue;
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x040056DF RID: 22239
		private static readonly MessageParser<SyncTurnFoodNotify> _parser = new MessageParser<SyncTurnFoodNotify>(() => new SyncTurnFoodNotify());

		// Token: 0x040056E0 RID: 22240
		private UnknownFieldSet _unknownFields;

		// Token: 0x040056E1 RID: 22241
		public const int DJKHJFIKMDPFieldNumber = 4;

		// Token: 0x040056E2 RID: 22242
		private static readonly FieldCodec<uint> _repeated_dJKHJFIKMDP_codec = FieldCodec.ForUInt32(34U);

		// Token: 0x040056E3 RID: 22243
		private readonly RepeatedField<uint> dJKHJFIKMDP_ = new RepeatedField<uint>();

		// Token: 0x040056E4 RID: 22244
		public const int TurnFoodSwitchFieldNumber = 8;

		// Token: 0x040056E5 RID: 22245
		private static readonly FieldCodec<TurnFoodSwitch> _repeated_turnFoodSwitch_codec = FieldCodec.ForEnum<TurnFoodSwitch>(66U, (TurnFoodSwitch x) => (int)x, (int x) => (TurnFoodSwitch)x);

		// Token: 0x040056E6 RID: 22246
		private readonly RepeatedField<TurnFoodSwitch> turnFoodSwitch_ = new RepeatedField<TurnFoodSwitch>();
	}
}
